import type { DataProvider } from './types';

export const defaultDataProvider: DataProvider = {
  create: () => Promise.resolve({ data: null } as any), // avoids adding a context in tests
  delete: () => Promise.resolve({ data: null } as any), // avoids adding a context in tests
  deleteMany: () => Promise.resolve({ data: [] }), // avoids adding a context in tests
  getList: () => Promise.resolve({ data: [], total: 0 }), // avoids adding a context in tests
  getMany: () => Promise.resolve({ data: [] }), // avoids adding a context in tests
  getManyReference: () => Promise.resolve({ data: [], total: 0 }), // avoids adding a context in tests
  getOne: () => Promise.resolve({ data: null } as any), // avoids adding a context in tests
  update: () => Promise.resolve({ data: null } as any), // avoids adding a context in tests
  updateMany: () => Promise.resolve({ data: [] }), // avoids adding a context in tests
};
